import request from "@/utils/request.js";
import axios from "axios";

export function editPage(id) {
    return request({
        method: 'get',
        url: '/repositoryInfo/' + id
    })
}

export function dialogSubmit(form,title) {
    return request({
        method: title == "添加" ? "post" : "put",
        url: '/repositoryInfo',
        data: form
    })
}

export function getBasePage(params) {
    return request({
        method: 'get',
        url: '/repositoryInfo/page',
        params: params
    })
}

export function deleteBase(ids) {
    return request({
        method: 'delete',
        url: 'http://localhost:9090/repositoryInfo/' + ids,
    })
}